package com.lh.util.dao;

public class Node implements Comparable<Node>{
    public int a, b, w, i;
    public Node(int a, int b, int w, int i) {
        this.a = a;
        this.b = b;
        this.w = w;
        this.i = i;
    }

    public int compareTo(Node node) {
        return this.w - node.w;  // 从小到大排序
    }
}
